﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Course.Controllers;
using Course.Models;
namespace Course.Views
{
    public partial class ChangePwd : Form
    {

          private ChangePwdController _controller;
          public ChangePwdController Controller
          {
              get
              {
                  return _controller;
              }
              set
              {
                  _controller = value;
                  this.textBox1.DataBindings.Add("Text", Controller.Model, "old");
                  this.textBox2.DataBindings.Add("Text", Controller.Model, "newPwd");
                  this.textBox3.DataBindings.Add("Text", Controller.Model, "confirm");
              }
          }

        public ChangePwd()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void ChangePwd_Load(object sender, EventArgs e)
        {
        
        }

        private void button1_Click(object sender, EventArgs e)
        {
            String result = Controller.change();
          
        }

    }
}
